Skip to content

docs(javascript): Prepare browser JavaScript docs for v11 - #19369

Merged
msonnb merged 3 commits into
js-v11-docsfrom
ms/v11-browser-sessions
Sep 22, 2026
Merged

msonnb merged 3 commits into
js-v11-docsfrom
ms/v11-browser-sessions

Conversation

@msonnb

@msonnb msonnb commented Sep 11, 2026

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Update the JavaScript browser docs for SDK v11’s session defaults and tracing integrations. Document page-based sessions, the unhandled session status, and the FetchStreamPerformance, Interactions, UserTiming, and WebVitals integrations.
Align the migration guide, interactive migration snippets, Next.js tracing guide, and Web Vitals documentation with these behaviors.

Closes SDK-1478
Closes SDK-1479

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 16, 2026 8:42am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 16, 2026 8:42am UTC

Request Review

@linear-code

linear-code Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

SDK-1479

SDK-1478

Comment on lines +12 to +16
Sentry's browser SDKs collect supported Web Vitals and associate them with your application's traces. The [Web Vitals dashboard](/product/dashboards/sentry-dashboards/frontend/web-vitals/) summarizes these metrics to show how each page performs for your users.

In JavaScript SDK version 11's default stream mode, LCP, CLS, and INP are sent as Web Vital spans. Earlier SDK versions and static mode can report vitals as measurements on pageload spans. In version 11, INP uses a Web Vital span in both modes.

To configure collection, see the [WebVitals integration](/platforms/javascript/configuration/integrations/webvitals/). If your custom dashboards or alerts use INP measurements, see the [v11 migration guide](/platforms/javascript/migration/v10-to-v11/).

@logaretm logaretm Sep 16, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning here that we collect web vitals for all kinds of navigations including page loads, soft navigations, and bfcache navigations.

I thought about adding this in several other areas but I think here makes the most sense to avoid being too yappy about it. It could be either it's own section or just a small mention, I'm not sure yet.

Okay, let's not do anything in this PR yet, I want to take a whole view on the web vitals documentation and see how we can describe all of this.

Comment on lines +16 to +18
Configure collection through `browserTracingIntegration({ webVitals: { ... } })`. The `enableInp` option is deprecated. Use `webVitals: { ignore: ["inp"] }` to disable INP, or include `"cls"` or `"lcp"` in `ignore` to skip those vitals. If you explicitly add `webVitalsIntegration()`, its options take precedence.

Soft-navigation vitals are enabled by default in stream mode on supporting browsers. Set `webVitals: { softNavigations: false }` to keep one set of vitals for the page lifetime. Back/forward-cache vitals are also enabled by default in stream mode when BrowserTracing's `instrumentBfcacheRestore` is enabled. Set `webVitals: { bfcacheNavigations: false }` to disable collection for restores. See <PlatformLink to="/configuration/integrations/webvitals/">WebVitals</PlatformLink> for requirements.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clean this up, feels like too many snippets crammed into this here and I think we can expand this to cover more.

I can take care of this after release, so let's not block the PR on this.

@logaretm

Copy link
Copy Markdown
Member

For the bfcache integration docs, I already have a PR for it, just need to update it.

@andreiborza
andreiborza changed the base branch from master to js-v11-docs September 22, 2026 12:14
@msonnb
msonnb marked this pull request as ready for review September 22, 2026 13:01
@msonnb
msonnb merged commit 355f9fa into js-v11-docs Sep 22, 2026
25 checks passed
@msonnb
msonnb deleted the ms/v11-browser-sessions branch September 22, 2026 13:01
@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 22, 2026 13:01

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 34a087c5 Deployed Sep 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do not merge js-v11-docs Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants